package com.access.model;

/**
 * Created by hrd on 2016/7/13.
 */
import com.access.model.Environment;
import com.access.model.Object;
import com.access.model.Subject;

public class AccessParams {
    private Boolean access;
    private String accessType;
    private boolean anonymous;
    private Subject sub;
    private Object obj;
    private Environment env;

    public AccessParams() {
    }

    public String attributesToString() {
        return this.sub.subToString() + "," + this.env.envToString();
    }

    public Boolean getAccess() {
        return this.access;
    }

    public void setAccess(Boolean access) {
        this.access = access;
    }

    public String getAccessType() {
        return this.accessType;
    }

    public void setAccessType(String accessType) {
        this.accessType = accessType;
    }

    public boolean isAnonymous() {
        return this.anonymous;
    }

    public void setAnonymous(boolean anonymous) {
        this.anonymous = anonymous;
    }

    public Subject getSub() {
        return this.sub;
    }

    public void setSub(Subject sub) {
        this.sub = sub;
    }

    public Object getObj() {
        return this.obj;
    }

    public void setObj(Object obj) {
        this.obj = obj;
    }

    public Environment getEnv() {
        return this.env;
    }

    public void setEnv(Environment env) {
        this.env = env;
    }
}
